<div class="bg-light lter b-b wrapper-md">
    <button type="button" class="close" ng-click="cancel()"><span class="icon icon-close" aria-hidden="true"></span></button>
    <h1 class="m-n font-thin h3">
        <span class="font-bold" translate="business.navtitle.patinfo">Service Request</span>
    </h1>
</div>
<div class="wrapper-md-12" ng-controller="ServReqFlowController" ng-init="init()">
    <tabset class="tab-container">

        <!-- personal information -->
        <tab heading="{{'aside.nav.basic.patCaseManage ' | translate}}">
            <div class="form-group">
                <div class="form-group row">
                    <label class="col-sm-2 control-label ">{{ 'business.patcase.id' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               value="P-{{patientPackage.patient.patient_Id}}" style="cursor:default" disabled>
                    </div>
                    <label class="col-sm-2">{{ 'user.realname' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               ng-model="patientPackage.patient._user.realName" style="cursor:default" disabled>
                    </div>
                    <div class="clearfix"></div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 control-label ">{{ 'user.icNo' | translate }}</label>

                    <div class="col-sm-10">
                        <input type="text" class="form-control"
                               ng-model="patientPackage.patient._user.icNo" style="cursor:default" disabled>
                    </div>
                    <div class="clearfix"></div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2">{{ 'user.gender' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               value="{{'user.gender.' + patientPackage.patient._user.gender | translate}}"
                               style="cursor:default" disabled>
                    </div>
                    <label class="col-sm-2" ng-show="patientPackage.patient._user.ageCn != null && patientPackage.patient._user.ageCn != ''">{{ 'user.age' | translate
                        }}</label>

                    <div class="col-sm-4" ng-show="patientPackage.patient._user.ageCn != null && patientPackage.patient._user.ageCn != ''">
                        <input type="text" class="form-control"
                               value="{{selectLang == 'English' ? patientPackage.patient._user.ageEn : patientPackage.patient._user.ageCn}}"
                               style="cursor:default" disabled>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2" ng-show="patientPackage.patient._user.birth_Year > 0">{{ 'user.year' |
                        translate }}</label>

                    <div class="col-sm-4" ng-show="patientPackage.patient._user.birth_Year > 0">
                        <input type="text" class="form-control"
                               ng-model="patientPackage.patient._user.birth_Year"
                               style="cursor:default" disabled>
                    </div>
                    <label class="col-sm-2" ng-show="patientPackage.patient._user.birth_Month > 0">{{ 'user.month' |
                        translate }}</label>

                    <div class="col-sm-4" ng-show="patientPackage.patient._user.birth_Month > 0">
                        <input type="text" class="form-control"
                               ng-model="patientPackage.patient._user.birth_Month"
                               style="cursor:default" disabled>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2">{{ 'user.marriage' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               value="{{'user.marriage.' + patientPackage.patient._user.marriage | translate}}"
                               style="cursor:default" disabled>
                    </div>
                    <label class="col-sm-2">{{ 'user.ethnic' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               ng-model="patientPackage.patient._user._race.race_Name" style="cursor:default" disabled>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2">{{ 'user.occupation' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               ng-model="patientPackage.patient._user.occupation"
                               style="cursor:default" disabled>
                    </div>
                    <label class="col-sm-2">{{ 'user.workplace' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               ng-model="patientPackage.patient._user.workPlace"
                               style="cursor:default" disabled>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2">{{ 'user.country' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               ng-model="patientPackage.patient._user._country.country_Cn_Name"
                               style="cursor:default" disabled>
                    </div>
                    <label class="col-sm-2">{{ 'user.province' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               ng-model="patientPackage.patient._user._province.loca_Cn_Name"
                               style="cursor:default" disabled>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2">{{ 'user.city' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               ng-model="patientPackage.patient._user._city.loca_Cn_Name"
                               style="cursor:default" disabled>
                    </div>
                    <label class="col-sm-2">{{ 'user.county' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               ng-model="patientPackage.patient._user._county.loca_Cn_Name"
                               style="cursor:default" disabled>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2">{{ 'user.mobilephone' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control" min="0" data-max="200"
                               ng-model="patientPackage.patient._user.mobile_Phone" ng-disabled="true"
                               style="cursor:default" disabled>
                    </div>
                    <label class="col-sm-2">{{ 'user.telephone' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control" min="0" data-max="200"
                               ng-model="patientPackage.patient._user.telephone" ng-disabled="true"
                               style="cursor:default" disabled>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2">{{ 'user.emergencycontact' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control" min="0" data-max="200"
                               ng-model="patientPackage.patient._user.emerg_Contact" ng-disabled="true"
                               style="cursor:default" disabled>
                    </div>
                    <label class="col-sm-2">{{ 'user.emergencymobile' | translate }}</label>

                    <div class="col-sm-4">
                        <input type="text" class="form-control" min="0" data-max="200"
                               ng-model="patientPackage.patient._user.emerg_Contact_Mobile" ng-disabled="true"
                               style="cursor:default" disabled>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2">{{ 'user.address' | translate }}</label>

                    <div class="col-sm-10">
                <textarea class="form-control no-radius" required
                          ng-model="patientPackage.patient._user.location_Address"
                          style="cursor:default;resize:none;" disabled></textarea>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
            <div class="line line-dashed b-b line-lg pull-in"></div>
            <div class="form-group">

                <label>{{ 'business.navtitle.personalhistory' | translate }}</label>

                <div>
                    <div class="form-group row" ng-if="patientPackage.patient.history_HighBlood==1">
                        <label class="col-sm-2" ng-if="patientPackage.patient.history_HighBlood==1">{{
                            'business.patcase.history_HighBlood' | translate }}</label>

                        <div class="col-sm-10" ng-if="patientPackage.patient.history_HighBlood==1">
	                <textarea class="form-control no-radius" required
                              ng-model="patientPackage.patient.history_HighBlood_Desc"
                              style="cursor:default;resize:none;" disabled></textarea>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="form-group row" ng-if="patientPackage.patient.history_Diabete==1">
                        <label class="col-sm-2" ng-if="patientPackage.patient.history_Diabete==1">{{
                            'business.patcase.history_Diabete' | translate }}</label>

                        <div class="col-sm-10" ng-if="patientPackage.patient.history_Diabete==1">
	                <textarea class="form-control no-radius" required
                              ng-model="patientPackage.patient.history_Diabete_Desc"
                              style="cursor:default;resize:none;" disabled></textarea>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="form-group row" ng-if="patientPackage.patient.history_Cardiov==1">
                        <label class="col-sm-2" ng-if="patientPackage.patient.history_Cardiov==1">{{
                            'business.patcase.history_Cardiov' | translate }}</label>

                        <div class="col-sm-10" ng-if="patientPackage.patient.history_Cardiov==1">
	                <textarea class="form-control no-radius" required
                              ng-model="patientPackage.patient.history_Cardiov_Desc"
                              style="cursor:default;resize:none;" disabled></textarea>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="form-group row" ng-if="patientPackage.patient.history_Epidemic==1">
                        <label class="col-sm-2" ng-if="patientPackage.patient.history_Epidemic==1">{{
                            'business.patcase.history_Epidemic' | translate }}</label>

                        <div class="col-sm-10" ng-if="patientPackage.patient.history_Epidemic==1">
	                <textarea class="form-control no-radius" required
                              ng-model="patientPackage.patient.history_Epidemic_Desc"
                              style="cursor:default;resize:none;" disabled></textarea>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="form-group row" ng-if="patientPackage.patient.history_Surgery==1">
                        <label class="col-sm-2" ng-if="patientPackage.patient.history_Surgery==1">{{
                            'business.patcase.history_Surgery' | translate }}</label>

                        <div class="col-sm-10" ng-if="patientPackage.patient.history_Surgery==1">
	                <textarea class="form-control no-radius" required
                              ng-model="patientPackage.patient.history_Surgery_Desc"
                              style="cursor:default;resize:none;" disabled></textarea>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="form-group row" ng-if="patientPackage.patient.history_Allergy==1">
                        <label class="col-sm-2" ng-if="patientPackage.patient.history_Allergy==1">{{
                            'business.patcase.history_Allergy' | translate }}</label>

                        <div class="col-sm-10" ng-if="patientPackage.patient.history_Allergy==1">
	                <textarea class="form-control no-radius" required
                              ng-model="patientPackage.patient.history_Allergy_Desc"
                              style="cursor:default;resize:none;" disabled></textarea>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>

            <div class="line line-dashed b-b line-lg pull-in"></div>
            <div class="form-group">
                <label>{{ 'business.navtitle.pathistory' | translate }}</label>

                <div>
                    <div class="form-group row" ng-if="patientPackage.patient.history_Smoke==1">
                        <label class="col-sm-2" ng-if="patientPackage.patient.history_Smoke==1">{{
                            'business.patcase.history_Smoke' | translate }}</label>

                        <div class="col-sm-10" ng-if="patientPackage.patient.history_Smoke==1">
	                <textarea class="form-control no-radius" required
                              ng-model="patientPackage.patient.history_Smoke_Desc"
                              style="cursor:default;resize:none;" disabled></textarea>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="form-group row" ng-if="patientPackage.patient.history_Drinking==1">
                        <label class="col-sm-2" ng-if="patientPackage.patient.history_Drinking==1">{{
                            'business.patcase.history_Drinking' | translate }}</label>

                        <div class="col-sm-10" ng-if="patientPackage.patient.history_Drinking==1">
	                <textarea class="form-control no-radius" required
                              ng-model="patientPackage.patient.history_Drinking_Desc"
                              style="cursor:default;resize:none;" disabled></textarea>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="form-group row" ng-if="patientPackage.patient.history_Chem==1">
                        <label class="col-sm-2" ng-if="patientPackage.patient.history_Chem==1">{{
                            'business.patcase.history_Chem' | translate }}</label>

                        <div class="col-sm-10" ng-if="patientPackage.patient.history_Chem==1">
	                <textarea class="form-control no-radius" required
                              ng-model="patientPackage.patient.history_Chem_Desc"
                              style="cursor:default;resize:none;" disabled></textarea>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="form-group row" ng-if="patientPackage.patient.history_EPIArea==1">
                        <label class="col-sm-2" ng-if="patientPackage.patient.history_EPIArea==1">{{
                            'business.patcase.history_EPIArea' | translate }}</label>

                        <div class="col-sm-10" ng-if="patientPackage.patient.history_EPIArea==1">
	                <textarea class="form-control no-radius" required
                              ng-model="patientPackage.patient.history_EPIArea_Desc"
                              style="cursor:default;resize:none;" disabled></textarea>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="form-group row" ng-if="patientPackage.patient.history_Other==1">
                        <label class="col-sm-2" ng-if="patientPackage.patient.history_Other==1">{{
                            'business.patcase.history_Other' | translate }}</label>

                        <div class="col-sm-10" ng-if="patientPackage.patient.history_Other==1">
	                <textarea class="form-control no-radius" required
                              ng-model="patientPackage.patient.history_Other_Desc"
                              style="cursor:default;resize:none;" disabled></textarea>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </tab>

        <!-- patient cases -->
        <tab heading="{{ 'business.navtitle.patcaseinfo' | translate }}"
             ng-if="patientPackage.patCases != '' && patientPackage.patCases != null">
            <accordion close-others="oneAtATime">
                <accordion-group is-open="true" ng-repeat="showPatCase in patientPackage.patCases">
                    <accordion-heading>
                        <div class="header-styfix">
                            <b>{{showPatCase.brief_Desc}}</b>
                            <small class="pull-right sm-cf">{{'common.updated' | translate}}: {{moment(showPatCase.updated).format("YYYY-MM-DD  HH:mm:ss")}}</small>
                        </div>
                    </accordion-heading>
                    <div class="form-group">
                        <label>{{ 'business.patcase.disease_site' | translate }}</label>
                        <input type="text"
                               ng-repeat="diseaseSite in showPatCase._diseaseSites"
                               value="{{'business.patcase.disease_Site_' + diseaseSite.desc | translate}}"
                               class="col-sm-10 form-control"
                               ng-disabled="true"
                               required style="cursor:default; margin-bottom:15px;" disabled>
                    </div>

                    <div class="form-group">
                        <label>{{ 'business.patcase.brief_Desc' | translate }}</label>
                        <input type="text" ng-model="showPatCase.brief_Desc" class="form-control"
                               ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                               required style="cursor:default" disabled>
                    </div>
                    <div class="form-group">
                        <label>{{ 'business.patcase.main_Desc' | translate }}</label>
                        <textarea rows="3" ng-model="showPatCase.main_Desc" class="form-control"
                                  style="overflow:auto;height:100px;max-height:100px;cursor:default;resize:none;"
                                  ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                  required disabled></textarea>
                    </div>
                    <div class="form-group">
                        <div class="row">
                            <label class="col-sm-2 control-label">{{ 'business.patcase.spirit_State' |
                                translate
                                }}</label>

                            <div class="col-sm-4">
                                <label>
                                    <input type="radio" name="{{'spirit_state' + $index}}"
                                           ng-model="showPatCase.spirit_State" value="verygood"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.verygood' | translate }}
                                </label>
                                <label>
                                    <input type="radio" name="{{'spirit_state' + $index}}"
                                           ng-model="showPatCase.spirit_State" value="notgood"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.notgood' | translate }}
                                </label>
                            </div>
                            <label class="col-sm-2 control-label">{{ 'business.patcase.strength' |
                                translate
                                }}</label>

                            <div class="col-sm-4">
                                <label>
                                    <input type="radio" name="{{'strength' + $index}}" ng-model="showPatCase.strength"
                                           value="verygood"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.verygood' | translate }}
                                </label>
                                <label>
                                    <input type="radio" name="{{'strength' + $index}}" ng-model="showPatCase.strength"
                                           value="notgood"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.notgood' | translate }}
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <div class="row">
                            <label class="col-sm-2 control-label">{{ 'business.patcase.appetite' |
                                translate
                                }}</label>

                            <div class="col-sm-4">
                                <label>
                                    <input type="radio" name="{{'appetite' + $index}}" ng-model="showPatCase.appetite"
                                           value="verygood"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.verygood' | translate }}
                                </label>
                                <label>
                                    <input type="radio" name="{{'appetite' + $index}}" ng-model="showPatCase.appetite"
                                           value="good"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.good' | translate }}
                                </label>
                                <label>
                                    <input type="radio" name="{{'appetite' + $index}}" ng-model="showPatCase.appetite"
                                           value="notgood"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.notgood' | translate }}
                                </label>
                            </div>
                            <label class="col-sm-2 control-label">{{ 'business.patcase.sleeping' |
                                translate
                                }}</label>

                            <div class="col-sm-4">
                                <label>
                                    <input type="radio" name="{{'sleeping' + $index}}" ng-model="showPatCase.sleeping"
                                           value="verygood"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.verygood' | translate }}
                                </label>
                                <label>
                                    <input type="radio" name="{{'sleeping' + $index}}" ng-model="showPatCase.sleeping"
                                           value="good"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.good' | translate }}
                                </label>
                                <label>
                                    <input type="radio" name="{{'sleeping' + $index}}" ng-model="showPatCase.sleeping"
                                           value="notgood"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.notgood' | translate }}
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <div class="row">
                            <label class="col-sm-2 control-label" style="padding-right:0;">{{ 'business.patcase.gatism_Handling'
                                |
                                translate
                                }}</label>

                            <div class="col-sm-4">
                                <label>
                                    <input type="radio" name="{{'gatism_handling' + $index}}"
                                           ng-model="showPatCase.gatism_Handling" value="usual"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.usual' | translate }}
                                </label>
                                <label>
                                    <input type="radio" name="{{'gatism_handling' + $index}}"
                                           ng-model="showPatCase.gatism_Handling" value="stool_usual"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'business.patcase.gatHand_stool' | translate }}
                                </label>
                                <label>
                                    <input type="radio" name="{{'gatism_handling' + $index}}"
                                           ng-model="showPatCase.gatism_Handling" value="urine_usual"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'business.patcase.gatHand_urine' | translate }}
                                </label>
                            </div>
                            <label class="col-sm-2 control-label">{{ 'business.patcase.method_Transport' | translate }}</label>

                            <div class="col-sm-4">
                                <label>
                                    <input type="radio" name="{{'method_transport' + $index}}"
                                           ng-model="showPatCase.method_Transport" value="usual"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'common.usual' | translate }}
                                </label>
                                <label>
                                    <input type="radio" name="{{'method_transport' + $index}}"
                                           ng-model="showPatCase.method_Transport" value="wheelchair"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'business.patcase.metTran_wheelchair' | translate }}
                                </label>
                                <label>
                                    <input type="radio" name="{{'method_transport' + $index}}"
                                           ng-model="showPatCase.method_Transport" value="ambulance"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                    {{ 'business.patcase.metTran_ambulance' | translate }}
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <!--tiWen-->
                        <div class="form-group row">

                            <label class="col-sm-2">{{ 'business.patcase.body_Temp' | translate
                                }} </label>

                            <div class="col-sm-10">
                                <div class="input-group">
                                    <input pattern="^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$"
                                           type="text"
                                           class="form-control"
                                           value="{{(showPatCase.body_Temp == 0) ? '' : showPatCase.body_Temp}}"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           style="cursor:default" disabled>
                                    <span class="input-group-btn">
                                        <button class="btn btn-default" type="button" ng-style="styleFix" disabled>{{
                                            'common.degree' |
                                            translate }}
                                        </button>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <!--xinLv-->
                        <div class="form-group row">
                            <label class="col-sm-2">{{ 'business.patcase.heart_Beat' | translate
                                }} </label>

                            <div class="col-sm-10">
                                <div class="input-group">
                                    <input pattern="^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$"
                                           type="text"
                                           class="form-control"
                                           value="{{(showPatCase.heart_Beat == 0) ? '' : showPatCase.heart_Beat}}"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           style="cursor:default" disabled>
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button" style="cursor:default" disabled>{{
                                        'common.notimes' |
                                        translate }}
                                    </button>
                                </span>
                                </div>
                            </div>
                        </div>
                        <!--huXi-->
                        <div class="form-group row">
                            <label class="col-sm-2">{{ 'business.patcase.breath_Int' | translate
                                }} </label>

                            <div class="col-sm-10">
                                <div class="input-group">
                                    <input pattern="^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$"
                                           type="text"
                                           class="form-control"
                                           value="{{(showPatCase.breath_Int == 0) ? '' : showPatCase.breath_Int}}"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           style="cursor:default;" disabled>
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button" style="cursor:default" disabled>{{
                                        'common.notimes' |
                                        translate }}
                                    </button>
                                </span>
                                </div>
                            </div>
                        </div>
                        <!--tiZhing&gaiBian-->
                        <div class="form-group row">
                            <label class="col-sm-2">{{ 'business.patcase.weight' | translate }}</label>

                            <div class="col-sm-4">
                                <div class="input-group">
                                    <input pattern="^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$"
                                           type="text"
                                           class="form-control"
                                           value="{{(showPatCase.weight == 0) ? '' : showPatCase.weight}}"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           style="cursor:default" disabled>
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button" style="cursor:default" disabled>{{
                                        'common.kg' | translate
                                        }}
                                    </button>
                                </span>
                                </div>
                            </div>

                            <label class="col-sm-2">{{ 'business.patcase.weight_change' | translate
                                }}</label>

                            <div class="col-sm-4">
                                <div class="input-group">
                                    <input type="number" class="form-control"
                                           ng-model="showPatCase.weight_Change"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           required style="cursor:default" disabled>
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button" style="cursor:default" disabled>{{
                                        'common.kg' | translate
                                        }}
                                    </button>
                                </span>
                                </div>
                            </div>
                        </div>
                        <!--BMI&shenGao-->
                        <div class="form-group row">
                            <label class="col-sm-2">{{ 'business.patcase.height' | translate }}</label>
                            <div class="col-sm-4">
                                <div class="input-group">
                                    <input pattern="^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$"
                                           type="text"
                                           class="form-control"
                                           value="{{(showPatCase.height == 0) ? '' : showPatCase.height}}"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           style="cursor:default" disabled>
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button" style="cursor:default" disabled>{{
                                        'common.cm' | translate
                                        }}
                                    </button>
                                </span>
                                </div>
                            </div>
                            <label class="col-sm-2">{{ 'business.patcase.bmi' | translate }}</label>
                            <div class="col-sm-4 col-xs-12">
                                <div class="input-group" style="width:100%">
                                    <input pattern="^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$"
                                           type="text"
                                           class="form-control"
                                           value="{{(showPatCase.bmi == 0) ? '' : showPatCase.bmi}}"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           style="cursor:default;" disabled>
                                    <span class="input-group-btn">
                                </span>
                                </div>
                            </div>
                        </div>
                        <!--xueYa-->
                        <div class="row">
                            <label class="col-sm-2 col-xs-12" style="padding-right:0;">{{ 'business.patcase.blood_Pressure' |
                                translate
                                }} </label>

                            <div class="col-sm-4 col-xs-4">
                                <div class="input-group" style="width:100%;">
                                    <input pattern="^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$"
                                           type="text"
                                           class="form-control"
                                           value="{{(showPatCase.blood_Pressure_High == 0) ? '' : showPatCase.blood_Pressure_High}}"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           style="cursor:default;" disabled>
                                </div>
                            </div>
                            <div class="col-sm-1 col-xs-1 text-center" style="padding:0;">
                                <span style="font-size: 24px">/</span>
                            </div>
                            <div class="col-sm-5 col-xs-7" style="padding-left: 5px">
                                <div class="input-group">
                                    <input pattern="^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$"
                                           type="text"
                                           class="form-control"
                                           value="{{(showPatCase.blood_Pressure_Low == 0) ? '' : showPatCase.blood_Pressure_Low}}"
                                           ng-disabled="showPatCase.isedit==false || showPatCase.isedit == null"
                                           style="cursor:default;" disabled>
                                    <span class="input-group-btn">
                                        <button class="btn btn-default" type="button" style="cursor:default" disabled>{{
                                            'common.mmHg' |
                                            translate }}
                                        </button>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group row" ng-if="showPatCase._mediCases != ''">
                        <label class="col-sm-2">{{ 'business.medicase.medicase' | translate }}</label>
                    </div>
                    <div class="form-group row" ng-repeat="mediCase in showPatCase._mediCases">
                        <label class="col-sm-2"></label>
                        <!--<p>{{currentUser.mediCaseThumbUrl}}</p>-->
                        <!--<p>{{mediCase.mediCase_Id}}</p>-->
                        <div class="col-sm-10">
                            <div class="input-group" ng-if="mediCase.mediCase_Id != ''">
                                <img ng-src="{{currentUser.mediCaseThumbUrl}}{{mediCase.mediCase_Id}}"
                                     ng-click="openShowImage(mediCase)">
                            </div>
                        </div>
                    </div>
                    <footer class="panel-footer text-right bg-light lter">
                        <button type="button" ng-if="showPatCase.patCase_Id > 0" class="btn btn-sm btn-primary"
                                title="{{ 'business.patcase.view_dicom' | translate }}"
                                translate="business.patcase.view_dicom"
                                ng-click="openDicomViewer4Query(showPatCase.patCase_Id)"></button>
                    </footer>
                </accordion-group>
            </accordion>
        </tab>

        <!-- current service -->
        <tab heading="{{ 'business.servreq.currentServReq' | translate }}"
             ng-if="patientPackage.servReq.servReq_Id > 0">
            <div class="purepage-servList-top">
                <div class="container purepage-servList">
                    <div class="row">
                        <div class="col-xs-6">
                            <span translate="business.servreq.id"></span>:&nbsp;&nbsp;
                            <span>S-{{patientPackage.servReq.servReq_Id}}</span>
                        </div>
                        <div class="col-xs-6">
                            <span translate="common.updated"></span>:&nbsp;&nbsp;
                            <span>{{ moment(patientPackage.servReq.updated).format("YYYY-MM-DD HH:mm") }}</span>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6">
                            <span translate="user.realname"></span>:&nbsp;&nbsp;
                            <span>{{patientPackage.patient._user.realName}}</span>
                        </div>
                        <div class="col-xs-6">
                            <span translate="user.mobilephone"></span>:&nbsp;&nbsp;
                            <span>{{ patientPackage.patient._user.mobile_Phone }}</span>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6">
                            <span translate="business.servreq.service"></span>:&nbsp;&nbsp;
                            <span translate="{{ 'servicetype.servicetype_' + patientPackage.servReq._servType.service_Id}}"></span>
                        </div>
                        <div class="col-xs-6">
                            <span translate="business.servreq.status"></span>:&nbsp;&nbsp;
                            <span>{{ (selectLang == 'English') ? patientPackage.servReq._status.enName : patientPackage.servReq._status.cnName}}</span>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6">
                            <span translate="business.patcase.brief_Desc"></span>:&nbsp;&nbsp;
                            <span>{{patientPackage.patCase.brief_Desc}}</span>
                        </div>
                        <!--<div class="col-xs-6">-->
                            <!--<span translate="user.mobilephone"></span>:&nbsp;&nbsp;-->
                            <!--<span>{{ patientPackage.patient._user.mobile_Phone }}</span>-->
                        <!--</div>-->
                    </div>
                    <div class="row"
                         ng-if="patientPackage.servReq._diseaseType.desc != '' && patientPackage.servReq._diseaseType.desc != null">
                        <label class="col-sm-3 control-label">
                            <span translate="business.patcase.disease_type"></span></label>

                        <div class="col-sm-9">
                            <div>{{'business.patcase.disease_type_' + patientPackage.servReq._diseaseType.desc |
                                translate}}
                            </div>
                        </div>
                    </div>
                    <div class="row"
                         ng-if="patientPackage.servReq.diag_Desc != '' && patientPackage.servReq.diag_Desc != null">
                        <label class="col-sm-3 control-label">
                            <span translate="common.diagnosticInstructions"></span>
                        </label>

                        <div class="col-sm-9" style="margin-bottom: 10px">
                            <textarea class="form-control" style="resize:none;" ng-model="patientPackage.servReq.diag_Desc" rows="4"
                          required readonly placeholder="{{ 'business.patcase.description' | translate }}"></textarea>
                        </div>
                    </div>
                    <div class="row"
                         ng-if="patientPackage.servReq.opeSolu_Desc != '' && patientPackage.servReq.opeSolu_Desc != null">
                        <label class="col-sm-3 control-label"><span translate="diagprocess.opesolution"></span></label>

                        <div class="col-sm-9">
	                        <textarea class="form-control" style="resize:none;" rows="4"
                                 required readonly  ng-model="patientPackage.servReq.opeSolu_Desc"
                                 placeholder="{{ 'business.patcase.description' | translate }}">
                            </textarea>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-12">
                            <button type="button" class="btn btn-default"
                                    ng-click="open({ templateUrl: 'views/work/basic_servreq_pure.html' }, patientPackage.servReq)"
                                    translate="business.servreq.moreDetails"></button>
                            <button type="button" ng-if="patientPackage.servReq.patCase_Id > 0" class="btn btn-sm btn-primary pull-right"
                                    title="{{ 'business.patcase.view_dicom' | translate }}"
                                    translate="business.patcase.view_dicom"
                                    ng-click="openDicomViewer4Query(patientPackage.servReq.patCase_Id)"></button>
                        </div>
                    </div>
                </div>
            </div>
        </tab>


        <tab heading="{{'aside.nav.process.evaluation' | translate}}"
             ng-if="patientPackage.servReq._customCareCase.isFinish">
            <div class="form-group">
                <label>{{ 'business.evaluation.pain_Level' | translate }}</label>
                <input type="number" class="form-control" ng-model="patientPackage.servReq._customCareCase.pain_Level"
                       style="cursor:default" disabled>
            </div>
            <div class="form-group">
                <label>{{ 'business.evaluation.compare_Previous' | translate }}</label>
                <input type="text" class="form-control"
                       value="{{'business.servreq.confirm_' + patientPackage.servReq._customCareCase.compare_Previous | translate}}"
                       style="cursor:default" disabled>
            </div>
            <div class="form-group">
                <label>{{ 'business.evaluation.service_Satis' | translate }}</label>
                <input type="text" class="form-control"
                       value="{{'business.servreq.satis_' + patientPackage.servReq._customCareCase.service_Satis | translate}}"
                       style="cursor:default" disabled>
            </div>
            <div class="form-group">
                <label>{{ 'business.evaluation.feedback' | translate }}</label>
                <input type="text" class="form-control" ng-model="patientPackage.servReq._customCareCase.feedback"
                       style="cursor:default" disabled>
            </div>
        </tab>

         <!--servlist-->
        <tab heading="{{ 'business.servreq.servList' | translate }}" ng-if="patientPackage.servReqs != ''">
            <div class="purepage-servList-top">
                <div class="container purepage-servList" ng-repeat="servReq in patientPackage.servReqs">
                    <div class="row">
                        <div class="col-xs-6">
                            <span translate="business.servreq.id"></span>:&nbsp;&nbsp;
                            <span>S-{{servReq.servReq_Id}}</span>
                        </div>
                        <div class="col-xs-6">
                            <span translate="common.updated"></span>:&nbsp;&nbsp;
                            <span>{{ moment(servReq.updated).format("YYYY-MM-DD HH:mm") }}</span>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6">
                            <span translate="business.servreq.service"></span>:&nbsp;&nbsp;
                            <!--<span>{{ servReq._servType.service_Name}}</span>-->
                            <span translate="{{'servicetype.servicetype_' + servReq._servType.service_Id}}"></span>
                        </div>
                        <div class="col-xs-6">
                            <span translate="business.servreq.status"></span>:&nbsp;&nbsp;
                            <span>{{ (selectLang == 'English') ? servReq._status.enName : servReq._status.cnName }}</span>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <button type="button" class="btn btn-default"
                                    ng-click="open({ templateUrl: 'views/work/basic_servreq_pure.html' }, servReq)"
                                    translate="business.servreq.moreDetails"></button>
                        </div>
                    </div>
                </div>
            </div>
        </tab>
    </tabset>
</div>

<script type="text/ng-template" id="ShowImage.html">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" ng-click="cancel()"><span class="icon icon-close" aria-hidden="true"></span></button>
            <h4 class="modal-title" id="myModalLabel"><span translate="business.medicase.medicase"></span></h4>
        </div>
        <div class="modal-body">
            <div class="col-sm-12 panel panel-default" style="overflow: auto">
                <img id="currImg" ng-src="{{currentUser.mediCaseUrl}}{{items.mediCase_Id}}" class="img-responsive center-block"
                     style="display:block; width:100%; height:100%;margin-top:15px; margin-bottom:15px;">
            </div>
            <div class="col-xs-12 text-center no-select" style="padding-bottom:10px;">
                <a ng-click="rotLeft()" style="color:#2d64b3;">
                    <i class="turnIco turnLft"></i>
                    <span>{{ "common.turnLeft" | translate}}</span>
                </a>&nbsp;&nbsp;&nbsp;
                <a ng-click="rotRight()" style="color:#2d64b3;">
                    <i class="turnIco turnRit"></i>
                    <span>{{ "common.turnRight" | translate}}</span>
                </a>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" ng-click="cancel()"><span translate="common.close"></span>
            </button>
        </div>
    </div>
</script>

